#pragma once

#include "DynamicObject.h"

class Bullet : public DynamicObject
{
   Q_OBJECT

public:
   Bullet(): DynamicObject()
   {}

   Bullet(const Bullet&, bool copyScene);

   Bullet(int ID, int Speed, int X, int Y, char Direction, double Progres);

   Bullet(QBitmap * ptr_bitmap, QWidget * parent = 0, Qt::WFlags flags = 0);

   void paint(QPainter * painter, const QStyleOptionGraphicsItem * option, QWidget * widget = 0);
   QRectF boundingRect() const;

   bool advanceAction(long duration);

   int GetID();
   void SetID(int ID);

protected:
   int id;
};
